#include "brightdlg.h"
#include "ui_brightdlg.h"

BrightDlg::BrightDlg(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::BrightDlg)
{
    ui->setupUi(this);
}

BrightDlg::~BrightDlg()
{
    delete ui;
}

void BrightDlg::changeEvent(QEvent *e)
{
    QDialog::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

/** Яркость.*/
double BrightDlg::Bright(){
	return (double)(ui->horizontalSlider->value()) / 50;
}
